package com.swyc.osschat.Test.designMode.agent.impl;

import com.swyc.osschat.Test.designMode.agent.base.RentHouse;

/**
 * @description 中介类：
 * @Author: z156940l@outlook.com
 * @className HomeProxy
 * @Date: 2022/7/25 17:52
 */
public class HomeProxy implements RentHouse {
    //房东类（中介类中持有房东类）
    private Homeowner homeowner = new Homeowner();

    @Override
    public void rentHoust() {
        System.out.println("中介收了点中介费");
        homeowner.rentHoust();
    }
}
